Skip to content

[FLINK-39879][tests] Avoid deploy RPC timeout in CheckpointAcknowledgeFailureITCase#28377

Open
MartijnVisser wants to merge 1 commit into
apache:masterfrom
MartijnVisser:flink-39879-checkpoint-ack-deploy-timeout
Open

[FLINK-39879][tests] Avoid deploy RPC timeout in CheckpointAcknowledgeFailureITCase#28377
MartijnVisser wants to merge 1 commit into
apache:masterfrom
MartijnVisser:flink-39879-checkpoint-ack-deploy-timeout

Conversation

@MartijnVisser

Copy link
Copy Markdown
Contributor

What is the purpose of the change

CheckpointAcknowledgeFailureITCase.testCheckpointAckFailure still fails on slow CI after the hang fix. The 250 ms pekko.ask.timeout set by the test is load-bearing (it forces the oversized checkpoint ACK to time out, which the test asserts on), but it is the cluster-wide RPC timeout and therefore also governs task deployment. On a slow machine the deployment ask itself exceeds 250 ms, so the job fails (recovery suppressed by NoRestartBackoffTimeStrategy) before the keyed state is updated.

Brief change log

  • Raise ASK_TIMEOUT from 250 ms to 1 s. CHECKPOINT_TIMEOUT stays ASK_TIMEOUT * 1000, so the oversized ACK is still what times out and the AskTimeoutException assertion is unchanged, while task deployment gets headroom on slow CI.

Verifying this change

This change is already covered by the existing testCheckpointAckFailure assertion (the AskTimeoutException check is unchanged); it only removes a slow-CI deploy-timeout flake. Verified by running the test repeatedly locally.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Was generative AI tooling used to co-author this PR?
  • Yes (Claude Opus 4.8 (1M context))

Generated-by: Claude Opus 4.8 (1M context)

…eFailureITCase

The oversized checkpoint ACK can never be delivered (state is 2x the pekko frame
size), so it always surfaces as an AskTimeoutException. The same cluster-wide ask
timeout also covers task deployment, which flaked on slow CI at 250 ms. Raise it
to 1 s; the failure mode is unchanged and CHECKPOINT_TIMEOUT stays
ask-timeout x 1000.

Generated-by: Claude Opus 4.8 (1M context)
@flinkbot

flinkbot commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants